class FixIds < ActiveRecord::Migration
  def self.up
    rename_column("ads", "ad_id", "id")
    rename_column("ad_types", "ad_type_id", "id")
    rename_column("auction_ads", "auction_ad_id", "id")
    rename_column("bids", "bid_id", "id")
    rename_column("buy_now_ads", "buy_now_ad_id", "id")
    rename_column("categories", "category_id", "id")
    rename_column("events", "event_id", "id")
    rename_column("judgements", "judgement_id", "id")
    rename_column("pictures", "picture_id", "id")
    rename_column("users", "user_id", "id")
  end

  def self.down
  end
end
